package com.colllection;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;

public class Test_1 {
    @SuppressWarnings({"all"})
    public static void main(String[] args) {
        ArrayList arrayList = new ArrayList();
        Iterator iterator=arrayList.iterator();
        for(int i=0;i<10;i++){
            arrayList.add(i);
        }
        for (Object o :arrayList) {
            System.out.print(o+" ");
        }

    }
}
